home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
misc
/
shellscr
/
src
/
locale.e
< prev
next >
Wrap
Text File
|
1999-11-30
|
1KB
|
59 lines
OPT MODULE
MODULE 'locale'
OBJECT catstr
id, str
ENDOBJECT
EXPORT CONST MSG_DEF_TITLE=0
EXPORT CONST MSG_DEF_PUBNAME=1
EXPORT CONST MSG_OK=2
EXPORT CONST MSG_PROPFONT=3
EXPORT CONST MSG_MODEID=4
EXPORT CONST MSG_NEWSHELL_FAILED=5
EXPORT CONST MSG_BAD_ARGS=6
EXPORT CONST MSG_NO_DEF_SCREEN=7
EXPORT CONST MSG_SCREEN_ERROR=8
EXPORT CONST MSG_UNKNOWN_ERROR=9
EXPORT CONST MSG_SCREENERROR=500
EXPORT CONST MSG_SCREENERROR_1=501
EXPORT CONST MSG_SCREENERROR_2=502
EXPORT CONST MSG_SCREENERROR_3=503
EXPORT CONST MSG_SCREENERROR_4=504
EXPORT CONST MSG_SCREENERROR_5=505
EXPORT CONST MSG_SCREENERROR_6=506
EXPORT CONST MSG_SCREENERROR_7=507
EXPORT PROC get_str(cat, id)
DEF str=NIL, block:PTR TO catstr
block := [
0, 'AmigaShell',
1, 'SHELL_%08lx',
2, 'OK',
3, 'Requested font "%s/%d" is not fixed-width!',
4, 'Chosen MODEID = 0x%lx',
5, 'Cannot open new shell',
6, 'Bad args',
7, 'Cannot find a default screen',
8, 'Cannot open screen: %s',
9, 'Unknown error',
500, 'No error',
501, 'Chosen ModeID is not available',
502, 'Better chipset required to display this mode',
503, 'Not enough memory',
504, 'Not enough chip memory',
505, 'Public name already in use',
506, 'Unknown ModeID',
507, 'Too many bitplanes',
NIL, NIL
]
WHILE block.str
IF block.id = id THEN str := block.str
EXIT block.id++ = id
ENDWHILE
ENDPROC IF localebase THEN GetCatalogStr(cat, id, str) ELSE str